package com.app.shop;

import android.app.Application;

import com.app.library.utils.AppDir;
import com.app.library.utils.FrescoUtil;

import org.litepal.LitePal;

import me.goldze.mvvmhabit.base.BaseApplication;
import me.goldze.mvvmhabit.utils.KLog;



public class  MyApplication extends Application {

    private static MyApplication instance;

    public static String TAG = "-------";


    @Override
    public void onCreate() {
        super.onCreate();

        instance = this;

        if (instance != null) {
            //数据库初始化
            LitePal.initialize(instance);

            //创建应用缓存路径
            AppDir.getInstance(this);
            //fresco初始化
            FrescoUtil.init(instance);
        }
    }


    public static MyApplication getInstance() {
        return instance;
    }
}
